Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update projectRoot in launchPackager.bat #24115

Closed
wants to merge 1 commit into from
Closed

Update projectRoot in launchPackager.bat #24115

wants to merge 1 commit into from

Conversation

nazreinkaram
Copy link
Contributor

@nazreinkaram nazreinkaram commented Mar 23, 2019

Summary

launchPackager.bat starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because startServerInNewWindow pass react-native directory instead of projectRoot in the third argument of spawn() in runAndroid.js

Its working for people
See #23908 (comment)

Changelog

[Android] [Fixed] - projectRoot in launchPackager.bat

Test Plan

`launchPackager.bat` starts metro server but does not pass projectRoot to it so metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js`
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 23, 2019
@react-native-bot react-native-bot added Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. Includes Changelog labels Mar 23, 2019
Copy link
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @nazreinkaram in 9db347f.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 25, 2019
AnimaSA pushed a commit to AnimaSA/react-native that referenced this pull request Mar 27, 2019
Summary:
`launchPackager.bat` starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js`

Its working for people
See facebook#23908 (comment)

[Android] [Fixed] - projectRoot in launchPackager.bat
Pull Request resolved: facebook#24115

Differential Revision: D14597101

Pulled By: cpojer

fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce
kelset pushed a commit that referenced this pull request Mar 29, 2019
Summary:
`launchPackager.bat` starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js`

Its working for people
See #23908 (comment)

[Android] [Fixed] - projectRoot in launchPackager.bat
Pull Request resolved: #24115

Differential Revision: D14597101

Pulled By: cpojer

fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants